﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace MyPoCApi.Models
{
    public class OrderDetail
    {
        public Order Order { get; set; }
        [Key]
        public int OrderDetailID { get; set; }
        public Product Product { get; set; }
        public decimal UnitPrice { get; set; }
        public int Qty { get; set; }
        public Decimal Price { get { return UnitPrice * Qty; } }

    }
}
